package com.wyl.demo01

import org.junit.jupiter.api.Test
import org.springframework.boot.test.context.SpringBootTest
import java.text.NumberFormat
import javax.swing.text.NumberFormatter
import kotlin.math.pow
import kotlin.math.round

@SpringBootTest
class Demo01ApplicationTests {

    @Test
    fun contextLoads() {

    }

    @Test
    fun testMath(){
        val d = 10 / 3.0f
        println(d)
        println(round(d))
        println(NumberFormat.getPercentInstance().format(0.4))
    }

}
